<template>
  <el-carousel
    style="margin-top: 30px"
    :interval="4000"
    type="card"
    height="500px"
  >
    <el-carousel-item v-for="item in 6" :key="item">
      <div class="text">
        <h2>{{ item }}</h2>
        <div>
          <p>Parties</p>
          <p>2022-09-22 00:00</p>
          <p>线上活动</p>
        </div>
      </div>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: "z-carousel",
  data () {
    return {

    }
  },

  created () {

  },
  methods: {

  }
}

</script>
<style scoped lang='scss'>
.text {
  position: absolute;
  color: #fff;
  h2 {
    position: relative;
    top: 300px;
    left: 30px;
    font-size: 20px;
    font-weight: 600;
  }
  div {
    position: relative;
    top: 310px;
    left: 30px;
    p {
      padding-top: 8px;
      margin-top: 8px;
      font-weight: 400;
    }
  }
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>